package com.ppg.redis.redisson;

import org.redisson.Redisson;
import org.redisson.api.RLock;
import org.redisson.config.Config;

import java.util.concurrent.TimeUnit;

public class RedissonTest {

    public static void main(String[] args) {
        Config config = new Config();


        Redisson redisson  = null;


        RLock lock = redisson.getLock("key");

        lock.lock(2, TimeUnit.SECONDS);



    }

}
